<template>
  <div>
    <van-uploader :after-read="afterRead" />
  </div>
</template>

<script>
export default {
  methods: {
    afterRead(file) {
      // 此时可以自行将文件上传至服务器
      console.log(file);
    },
  },
};
</script>

<style scoped>
div/deep/.van-icon-photograph:before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background: url("../assets/img/choose.png");
  background-size: contain;
}
</style>
